Ex temporibus offici.Carbon
provides the format()
method which is used to format the date as we want. We can also get the
month name from the date. Also, this function is useful to change any
kind of date format like we are doing in PHP’s date() function. Let’s see simple examples.